﻿using log4net;
using Quartz;
using System;
using System.Threading.Tasks;

namespace QuartzTest
{
    public class RoomCloseJob : IJob
    {
        static readonly ILog log = LogManager.GetLogger(typeof(RoomCloseJob));
        public async Task Execute(IJobExecutionContext context)
        {
            try
            {
                log.Debug("  >>>>>Room Close Now.");
                await Task.Delay(TimeSpan.FromSeconds(2));
                log.Debug("  ++==================================++");
                log.Debug("  <<<<<Room Close Finish.");
            }
            catch (Exception ex)
            {
                EE.LogError("RoomClose Error:", ex, log);
            }
        }
    }
}
